RTML.`ToXml() Method

.NET Only (Ignore the `) Generate the RTML (XML) represented by the object model

Syntax

RTML.`ToXml(IncludeDocHeader, Formatting, EOLType)

The method syntax has these parts:

Part Description
IncludeDocHeader (Boolean) True to include the <?xml version="1.0" ?> header as required to make it a full XML document instead of a snippet.
Formatting (System.Xml.Formatting) Indicates how the XML should be formatted, Formatting.Indented (default) or Formatting.None.
EOLType (LiquidTechnologies.Runtime.NET35.EOLType) Indicates the line endings to use, EOLType.CRLF (default) or EOLType.LF (*nix)
Return (String) The RTML (XML) represented by the object model

Remarks

NOTE: The tic mark (`) at the beginning of the name of this method is there due to a limitation of the documentation generator preventing it from handling overloaded methods. The real name of this overload is ToXml().

This overload provides full control over the generated RTML/XML.

Will raise an exception if the RTML within the object is not valid, i.e. invalid number of entries in a collection.

Symbolic Constants

The (symbolic) values for System.Xml.Formatting are:

Constant Value Description
None 0 None
Indented 0 Indented

The (symbolic) values for LiquidTechnologies.Runtime.NET35.EOLType are:

Constant Value Description
CRLF 0 Internet/Windows standard
LF 0 Unix standard only